﻿using MuXue.Zyiz.Template.Domain.Entity;
using MuXue.Zyiz.Template.Domain.Model;
using MuXue.Zyiz.Template.Domain.Model.Request;
using MuXue.Zyiz.Template.Domain.Model.response;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;


namespace MuXue.Zyiz.Template.Service
{
    /// <summary>
    /// 【Demo接口，可以删除】
    /// </summary>
    public interface IordersService
    {


        /// <summary>
        ///【列表Demo】 获取用户的订单数据
        /// </summary>
        /// <param name="userid"></param>
        /// <returns></returns>
        Task<Result<List<SmallOrderResp>>> GetList(string userid);





        /// <summary>
        /// 【详情Demo】获取用户订单详情
        /// </summary>
        /// <param name="app_user_id"></param>
        /// <param name="order_no"></param>
        /// <returns></returns>
        Task<Result<OrderDetailResp>> QueryDetailByOrderNo(string app_user_id, string order_no);


        /// <summary>
        /// 【部分修改Demo】用户主动取消退费
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        Task<Result<string>> CancelOrder(OrderDetailReq req);



    }
}
